export interface TranscodeRequest {
    prompt: string,
    tool: string,
    code: string,
    id: string,
    compile_params: string,
    exec_params: string,
    auto_repeat: number
}

export interface TranscodeResponse {
    status: number,
    content?: string,
    tool?: string,
    error?: Object | string
}

export interface TranscodeStreamResponse {
    status: number,
    content?: string,
    error?: Object | string
}

export interface RunRequest {
    language: string,
    code: string,
    compile_params: string,
    exec_params: string
}

export interface RunResponse {
    status: number,
    output: string
}

export interface updateRequest {
    cpp: string,
    rust: string
}

export interface updateResponse {
    status: number,
    message: string
}

declare global {
    interface Window {
        showDirectoryPicker: () => Promise<any>;
    }
}
  